package com.hundsun.yr.universal.p2p.bean;

import java.io.Serializable;

import android.text.TextUtils;

import com.hundsun.yr.universal.library.utils.HsDateUtils;





/**
 * @Title: Message.java 
 * @Description: 消息
 * @date 2016-1-14 上午10:52:03 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class Message extends ResponseBean implements Serializable {
	
	private static final long serialVersionUID = 1L;

	/**
	 * 取值的key
	 */
	public static String BASEKEY="messageDetailBizPojos";
	
	/**
	 * 消息内容
	 */
	private String content;
	
	/**
	 * 时间
	 */
	private String date;
	
	/**
	 * 消息状态  0-已读   READ("0","已读"),  1-未读  UNREAD("1","未读"), 2-删除  DELETE("2","删除"),
	 */
	private String status;
	
	/**
	 * 消息标题
	 */
	private String title;

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	
	/**
	 * 格式化时间  yyyy-MM-dd
	 * @return
	 */
	public String getFormatDate() {
		return HsDateUtils.timeformat(HsDateUtils.farmat_date_3, date);
	}
	
	/**
	 * 是否已阅读
	 * @return
	 */
	public boolean isRead(){
		
		if(TextUtils.equals(status, "UNREAD")){
			return false;
		}else{
			return true;
		}
		
	}
}
